//
//  CHMenuAdditions.m
//  Chocolat
//
//  Created by Pieter Omvlee on 8/13/08.
//  Copyright 2008 Insearchofaname. All rights reserved.
//

#import "CHMenuAdditions.h"


@implementation NSMenu (CHMenuAdditions)

- (NSMenuItem *)addItemWithTitle:(NSString *)aString target:(id)aTarget action:(SEL)aSelector
{
  NSMenuItem *item = [self addItemWithTitle:aString action:aSelector keyEquivalent:@""];
  [item setTarget:aTarget];
  
  return item;
}

- (NSMenuItem *)addItemWithTitle:(NSString *)aString target:(id)aTarget action:(SEL)aSelector representedObject:(id)anObject
{
  NSMenuItem *item = [self addItemWithTitle:aString action:aSelector keyEquivalent:@""];
  [item setTarget:aTarget];
  [item setRepresentedObject:anObject];
  return item;
  
}

@end
